package com.hmall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.order.pojo.OrderDetail;
import org.apache.ibatis.annotations.Select;

public interface OrderDetailMapper extends BaseMapper<OrderDetail> {
    /**
     * 根据订单id获取订单详情
     * @param orderId
     * @return
     */
    @Select("select * from tb_order_detail where order_id = #{orderId}")
    OrderDetail selectByOrderId(Long orderId);
}
